﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="NetworkOperatorList.ascx.cs"
    Inherits="Workflow.Alerts.Sublayouts.ProfileSettings.NetworkOperatorList" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<script type="text/javascript">
    function RowClick(sender, args) {
        currentRowIndex = args.get_gridDataItem().get_element().rowIndex;
        document.location = document.getElementById('<%=DetailsPath.ClientID%>').value + "?opId=" + args.getDataKeyValue("id");
    }

    function RowCreated(sender, args) {
    }
</script>

<h2 class="settingsTitle">
    Netwerkbeheerders</h2>
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" GridLines="None"
    CssClass="tag_mainList" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"
    Skin="workflow">
    <ClientSettings EnableRowHoverStyle="true">
        <ClientEvents OnRowClick="RowClick" OnRowCreated="RowCreated" />
    </ClientSettings>
    <MasterTableView DataKeyNames="id" ClientDataKeyNames="id" ShowFooter="false">
        <Columns>
            <telerik:GridBoundColumn UniqueName="id" Visible="false" DataField="id">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Name" DataField="name" HeaderText="Bedrijfsnaam">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Code" DataField="code" HeaderText="Code">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
<div class="footerButtonContainer" id="buttons" runat="server" visible="false">
    <asp:Button ID="btnNew" runat="server" Text="Nieuwe netbeheerder" OnClick="btnNew_Click"
        CssClass="styledButton styledButton150" />
</div>
<input type="hidden" runat="server" id="DetailsPath" />